
#include "SimpleFactory.h"
#include "OperationPlus.h"
#include "OperationSub.h"

using namespace npSimpleFactory;


//other constructors

//public methods

//protected methods

//private methods

//static part
shared_ptr<Operation> SimpleFactory::createFactory(char sign) throw()
{
    switch (sign)
    {
    case '+':
        return shared_ptr<Operation>(new OperationPlus());
    case '-':
        return shared_ptr<Operation>(new OperationSub());
    
    default:
        return shared_ptr<Operation>();
    }
}

//others
